<?php 
global $dir_tpl, $tb_fix, $temp, $anyDB, $temp;  
$sql = "select * from ".$tb_fix."_tour_menu order by tme_order asc";
$q = $anyDB->query($sql);
if($anyDB->numRows($q)> 0){
    $r = $anyDB->getAll($q);
    foreach($r as $k=>$v){
        if($v['tme_root_id'] == 1){
            $r[$k]['url'] = "tour/1/tour-nuoc-ngoai/".$v['tme_id']."/".convertText($v['tme_title'])."/";
        }else{
            $r[$k]['url'] = "tour/2/tour-trong-nuoc/".$v['tme_id']."/".convertText($v['tme_title'])."/";
        }
    }    
}
$temp->assign("row",$r);
$temp->display("$dir_tpl/blocks/home_menu/tpl_home_menu.mct"); 
?> 
